package top.sssd.auth.model.user.dto;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel(value = "User对象", description = "用户表")
public class UserDto {
    //用户ID
    @ApiModelProperty(value = "用户ID")
    private Long id;
    //用户名
    @ApiModelProperty(value = "用户名")
    private String username;
    //密码(加密存储)
    @ApiModelProperty(value = "密码(加密存储)")
    private String password;
    //加密盐值
    @ApiModelProperty(value = "加密盐值")
    private String salt;
    //邮箱
    @ApiModelProperty(value = "邮箱")
    private String email;
    //手机号
    @ApiModelProperty(value = "手机号")
    private String phone;
    //状态(0:禁用,1:启用)
    @ApiModelProperty(value = "状态(0:禁用,1:启用)")
    private Boolean status;
    //最后登录时间
    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime lastLoginTime;
}
